package HandObservable;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-09 08:52
 */
public class MouseEventTest {
    public static void main(String[] args) {
        try {
            MouseEventCallback callback = new MouseEventCallback();

            //注册事件
            Mouse mouse = new Mouse();
            mouse.addLisenter(MouseEventType.ON_CLICK, callback);

            //调用方法
            mouse.click();

        }catch(Exception e){

            e.printStackTrace();
        }

    }
}
